home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / iritsm3s.zip / MAKEFLAG.UNX < prev    next >
Text File  |  1992-03-11  |  5KB  |  194 lines

  1. #
  2. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  3. # is sourced from several directories relative path specification will
  4. # be simple wrong.
  5. #
  6.  
  7. #
  8. # All libraries created will be installed into the LIB_DIR directory.
  9. #
  10. LIB_DIR = /u/grad/gershon/sm/t/lib
  11.  
  12. #
  13. # All includes files associated with the installed libraries will be
  14. # installed into the INC_DIR directory.
  15. #
  16. INC_DIR = /u/grad/gershon/sm/t/inc
  17.  
  18. #
  19. # All binaries created will be installed into the BIN_DIR directory.
  20. #
  21. BIN_DIR = /u/grad/gershon/sm/t/bin
  22.  
  23. #
  24. # Uncomment the correct set of variables to be used or modify it for
  25. # your system.
  26. #
  27. # -D flags:
  28. #
  29. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  30. #
  31. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  32. #    be used.
  33. #
  34. #  Emulation to the following function are available by defining the
  35. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  36. # -DGETCWD - if getcwd is not defined in this system.
  37. # -DSTRSTR - if strstr is not defined in this system.
  38. # -DSTRDUP - if strdup is not defined in this system.
  39. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  40. #
  41. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  42. #
  43. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  44. #    varargs.h.
  45. #
  46. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  47. #
  48.  
  49. #
  50. # Flags for SGI 4d, Irix 3.x, using gl:
  51. #
  52. # CC = cc
  53. # DFLAGS = -DNO_VOID_PTR -DSTRICMP -DNO_CONCAT_STR
  54. # CFLAGS = -O -D__GL__ $(DFLAGS) -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  55. # CFLAGS = -g -p -D__GL__ $(DFLAGS) -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  56. # MORELIBS = -lgl_s -lbsd
  57. # MOREOBJS = xglgraph.o
  58.  
  59. #
  60. # Flags for SGI 4d, Irix 3.x, using X11:
  61. #
  62. # CC = cc
  63. # DFLAGS = -DNO_VOID_PTR -DSTRICMP -DNO_CONCAT_STR
  64. # CFLAGS = -O -D__X11__ $(DFLAGS) -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  65. # CFLAGS = -g -p -D__X11__ $(DFLAGS) -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  66. # MORELIBS = -lX11 -lbsd
  67. # MOREOBJS = x11graph.o
  68.  
  69. #
  70. # Flags for SGI 4d, Irix 4.0, using gl:
  71. #
  72. # CC = cc
  73. # DFLAGS = -DSTRICMP
  74. # CFLAGS = -xansi -O -D__GL__ $(DFLAGS) -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  75. # CFLAGS = -xansi -g -p -D__GL__ $(DFLAGS) -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  76. # MORELIBS = -lgl_s -lbsd
  77. # MOREOBJS = xglgraph.o
  78.  
  79. #
  80. # Flags for SGI 4d, Irix 4.0, using X11:
  81. #
  82. # CC = cc
  83. # DFLAGS = -DSTRICMP
  84. # CFLAGS = -xansi -O -D__X11__ $(DFLAGS) -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  85. # CFLAGS = -xansi -g -p -D__X11__ $(DFLAGS) -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  86. # MORELIBS = -lX11_s -lbsd
  87. # MOREOBJS = x11graph.o
  88.  
  89. #
  90. # Flags for i386 SVR4 using X11
  91. #
  92. # CC = cc
  93. # DFLAGS = -D__X11__ -DSTRICMP 
  94. # CFLAGS = -O $(DFLAGS)
  95. # CFLAGS = -g $(DFLAGS)
  96. # MORELIBS = -lX11 -lsocket -lnsl
  97. # MOREOBJS = x11graph.o
  98.  
  99. #
  100. # Flags for BSD4.3/SUN O.S. 4.1.1 using gcc 1.39 and X11:
  101. # Note you cannot use SUN's native cc compiler since it does not support
  102. # Ansi C.
  103. #
  104. # CC = gcc
  105. # DFLAGS = -DUSE_VARARGS -D__X11__
  106. # CFLAGS = -O $(DFLAGS)
  107. # CFLAGS = -g -pg $(DFLAGS)
  108. # MORELIBS = -lX11
  109. # MOREOBJS = x11graph.o
  110.  
  111. #
  112. # Flags for HPBSD 4.3, HP300/400 and X11
  113. # Note I used gnumake here since the provided make do not support the
  114. # 'include ../makeflag.unx' directive.
  115. #
  116. # CC = gcc
  117. # DFLAGS = -DUSE_VARARGS -D__X11__ -DSTRICMP -DSTRSTR -DGETCWD
  118. # CFLAGS = -O $(DFLAGS)
  119. # CFLAGS = -g -pg $(DFLAGS)
  120. # MORELIBS = -lX11
  121. # MOREOBJS = x11graph.o
  122.  
  123. #
  124. # Flags for a DEC 5000/200, with gcc, x11:
  125. #
  126. # CC = gcc
  127. # DFLAGS = -DSTRDUP -DSTRICMP -D__X11__
  128. # CFLAGS = -O $(DFLAGS)
  129. # CFLAGS = -O -fstrength-reduce -fcombine-regs -fforce-mem -fforce-addr -fomit-frame-pointer -finline-functions -fcaller-saves -fdelayed-branch $(DFLAGS)
  130. # MORELIBS = -lX11
  131. # MOREOBJS = x11graph.o
  132.  
  133. #
  134. # Flags for IBM RS6000 using gl
  135. # The gl implementation (in both software and hardware) on the RS6000
  136. # could be better. Although basically working, its speed is approximately
  137. # the same as X11 (You do get hardware rendering though)...
  138. #
  139. # CC = xlc
  140. # DFLAGS = -D__GL__ -D_POSIX_SOURCE -D_ALL_SOURCE -DSTRSTR -DSTRDUP -DSTRICMP
  141. # CFLAGS = -O -qnoro $(DFLAGS)
  142. # CFLAGS = -g -pg -qnoro $(DFLAGS)
  143. # MORELIBS = -lgl
  144. # MOREOBJS = xglgraph.o
  145.  
  146. #
  147. # Flags for IBM RS6000 using X11
  148. #
  149. # CC = xlc
  150. # DFLAGS = -D__X11__ -D_POSIX_SOURCE -D_ALL_SOURCE -DSTRSTR -DSTRDUP -DSTRICMP
  151. # CFLAGS = -O -qnoro $(DFLAGS)
  152. # CFLAGS = -g -pg -qnoro $(DFLAGS)
  153. # MORELIBS = -lX11
  154. # MOREOBJS = x11graph.o
  155.  
  156. #
  157. # Flags for HP snake machines running hpux.
  158. #
  159. # CC = cc
  160. # DFLAGS = -D__X11__ -DSTRICMP
  161. # CFLAGS = -Aa -O $(DFLAGS) -D_INCLUDE_POSIX_SOURCE
  162. # CFLAGS = -Aa -g $(DFLAGS) -D_INCLUDE_POSIX_SOURCE
  163. # MORELIBS = -L/usr/lib/X11R4 -lX11
  164. # MOREOBJS = x11graph.o
  165.  
  166. #
  167. # Flags for IBM PC, SYSV3.2, ISC 2.2.1 and MIT X11R4, using gcc 1.40
  168. #
  169. # CC = gcc
  170. # DFLAGS = -DSTRICMP -DNO_CONCAT_STR -DUSE_VARARGS -D__X11__ -DNO_ASM -DISC
  171. # CFLAGS = -O $(DFLAGS)
  172. # MORELIBS = -L/usr2/lib -lX11_s -linet -lpt -lcposix
  173. # MOREOBJS = x11graph.o
  174.  
  175. #
  176. # Flags for Evans & Sutherland ESV
  177. #
  178. # CC = cc
  179. # DFLAGS = -D__X11__ -DSTRICMP -DNO_CONCAT_STR
  180. # CFLAGS = -systype sysv -s -O $(DFLAGS)
  181. # MORELIBS = -systype sysv -lX11 -lbsd
  182. # MOREOBJS = x11graph.o
  183.  
  184. #
  185. # Default rule for compilation.
  186. #
  187. .c.o:
  188.     $(CC) $(CFLAGS) -I. -I$(INC_DIR) -c $<
  189.  
  190. #
  191. # All libraries.
  192. #
  193. LIBS =    -L$(LIB_DIR) -lmisc -lcagd # -lgif
  194.